package service.impl;

import dao.IUserDao;
import service.IUserService;

import java.util.Arrays;
import java.util.Map;

/**
 * 业务层
 */
public class UserServiceImpl implements IUserService {

    private IUserDao userDao;

    private String[] strs;

    private Map<String, String> maps;

    public void setStrs(String[] strs) {
        this.strs = strs;
    }

    public void setMaps(Map<String, String> maps) {
        this.maps = maps;
    }

    public UserServiceImpl() {
    }

    public UserServiceImpl(IUserDao userDao) {
        this.userDao = userDao;
    }

    public void setTest(IUserDao userDao){
        this.userDao = userDao;
    }



    public void saveUser() {
        userDao.saveUser();
        System.out.println("array = " + Arrays.toString(strs));
        System.out.println("map = " + maps);
    }
}